package syllabus.service.impl;

import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import syllabus.dao.PLogMapper;
import syllabus.model.Criteria;
import syllabus.model.PLog;
import syllabus.service.PLogService;

@Service
public class PLogServiceImpl implements PLogService {
    @Autowired
    private PLogMapper pLogMapper;

    private static final Logger logger = LoggerFactory.getLogger(PLogServiceImpl.class);

    public int countByExample(Criteria example) {
        int count = this.pLogMapper.countByExample(example);
        logger.debug("count: {}", count);
        return count;
    }

    public PLog selectByPrimaryKey(Integer id) {
        return this.pLogMapper.selectByPrimaryKey(id);
    }

    public List<PLog> selectByExample(Criteria example) {
        return this.pLogMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(Integer id) {
        return this.pLogMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(PLog record) {
        return this.pLogMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(PLog record) {
        return this.pLogMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(Criteria example) {
        return this.pLogMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(PLog record, Criteria example) {
        return this.pLogMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(PLog record, Criteria example) {
        return this.pLogMapper.updateByExample(record, example);
    }

    public int insert(PLog record) {
        return this.pLogMapper.insert(record);
    }

    public int insertSelective(PLog record) {
        return this.pLogMapper.insertSelective(record);
    }
}